package com.ccp.dev.workflow.model.bpm;

import com.ccp.dev.form.model.FormTable;

/**
 * sql对象数据
 * @author zks
 * @version 2019-07-24
 */
public class SqlModel {
    /**
     * 插入
     */
    public static final int SQLTYPE_INSERT=0;
    /**
     * 更新数据
     */
    public static final int SQLTYPE_UPDATE=1;

    /**
     * 删除数据
     */
    public static final int SQLTYPE_DEL=2;



    public SqlModel(){}



    public SqlModel(String sql,Object[] values,int sqlType){
        this.sql=sql;
        this.values=values;
        this.sqlType=sqlType;

    }


    /**
     * sql语句
     */
    private String sql="";

    /**
     * 对应的表元数据
     */
    private FormTable formTable=null;

    /**
     * sql值数组。
     */
    private Object[] values;

    private int sqlType=SQLTYPE_INSERT;


    /**
     * 主键
     */
    private String pk="";

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public Object[] getValues() {
        return values;
    }

    public void setValues(Object[] values) {
        this.values = values;
    }



    public int getSqlType() {
        return sqlType;
    }



    public void setSqlType(int sqlType) {
        this.sqlType = sqlType;
    }


    public String getPk() {
        return pk;
    }



    public void setPk(String pk) {
        this.pk = pk;
    }



    public FormTable getFormTable() {
        return formTable;
    }



    public void setFormTable(FormTable formTable) {
        this.formTable = formTable;
    }


}
